import requests

url = "https://api.siliconflow.com/v1/audio/speech"

payload = {
"input": "Can you say it with a happy emotion? <|endofprompt|>I'm so happy, Spring Festival is coming!",
"response_format": "mp3",
"stream": True,
"speed": 1,
"gain": 0,
"model": "fishaudio/fish-speech-1.5"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}

response = requests.request("POST", url, json=payload, headers=headers)

print(response.text)